from urllib.request import *

result = urlopen('http://www.baidu.com')
while True:
	data = result.read(1024)
	if len(data) == 0:
		break
	print(data.decode('utf-8'))